public class Demo {
    public static void main(String[] args) {

        isLine isLine = new isLine(new Point(1,1), new Point(2,9));
        isLine.Slope();
        isLine.Intercept();
        System.out.println("(3,4)是否在直线上 " + isLine.isOnLine(new Point(4,4)));
        System.out.println();

        isRadial isRadial = new isRadial(new Point(-2.9, 7.3), new Point(6.8, 15.6));
        isRadial.Slope();
        isRadial.Intercept();
        System.out.println("(3,4)是否在射线上 " + isRadial.isOnLine(new Point(3,7)));
        System.out.println();


        isLineSegment isLineSegment = new isLineSegment(new Point(10, 20), new Point(20, 50));
        isLineSegment.Slope();
        isLineSegment.Intercept();
//        System.out.println(isLineSegment.getSlope());
        System.out.println("(15,25)是否在线段上 " + isLineSegment.isOnLine(new Point(15,25)));

    }
}

